#include "observer.h"


int main(){
    std::shared_ptr<Subject> subject = std::make_shared<ConcreteSubject>();
    
    std::shared_ptr<Observer> zhangsan = std::make_shared<ConcreteObserver>("张三",subject);
    std::shared_ptr<Observer> lisi = std::make_shared<ConcreteObserver>("李四",subject);

    subject->notify();

    return 0;
}